package models

import "github.com/astaxie/beego/orm"

type Position struct {
	Id        int
	Name      string `ht:"list;search;name(商区名称)"  valid:"Required"`
	Latitude  float32 `ht:"list;name(经度)" `
	Longitude float32 `ht:"list;name(纬度)" `
	Address   string `ht:"list;name(具体地点)" `
}

func init() {
	orm.RegisterModel(new(Position))
}
func (*Position)TableName() string {
	return "position"
}

func (*Position) FN_Id() string {
	return "Id"
}
func (*Position) FN_Name() string {
	return "Name"
}
func (*Position) FN_Latitude() string {
	return "Latitude"
}
func (*Position) FN_Longitude() string {
	return "Longitude"
}
func (*Position) FN_Address() string {
	return "Address"
}